package com.lst.api.service;

import com.lst.api.entity.SysUser;
import com.lst.api.vo.response.UserLoginResponse;
import com.lst.tools.mybatis.service.IBaseService;

/**
 * 系统用户业务层
 *
 * @author Frank
 * @date 2019-12-30 15:36:39
 * @version: V1.0
 */
public interface ISysUserService extends IBaseService<SysUser> {

    /**
     * 根据用户名和密码获取有效用户信息
     *
     * @param userName
     * @param password
     * @return
     */
    SysUser getValidByUserNameAndPwd(String userName, String password);

    /**
     * 用户登录
     *
     * @param sysUser
     * @param ip
     * @param tokenRedisKey
     * @return
     */
    UserLoginResponse login(SysUser sysUser, String ip, String tokenRedisKey);
}
